package com.lee.rpc.protocal.core;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicLong;

public class RequestHolder {
	
	//这个是请求id，我们使用自增原子类
	public static final AtomicLong REQUEST_ID = new AtomicLong();

	//定义一个请求和Future结果的映射关系，发出请求，请求完成移除元素
	public static final Map<Long, RpcFuture> REQUEST_MAP = new ConcurrentHashMap<>();
	
}
